const state = {
	userInfo:{}
}
const mutations = {
	SET_USER_INFO(state,data){
		state.userInfo = data;
		// setStorageSync设置本地缓存
		try {
		    uni.setStorageSync('userData', data);
		} catch (e) {
		   console.log(e)
		}
	},
	REMOVE_USER_INFO(state){
		// 删除本地缓存
		state.userInfo = {};
		
			uni.removeStorageSync("userData");
			
	}
}
const actions = {
	
	
}

 

export default {
	namespaced: true,
	state,
	mutations,
	actions
}